package xml.pull_xml_api;

import javax.xml.namespace.QName;
import javax.xml.stream.Location;

public class EndTag extends Event {
	
	private final QName name;

//	public EndTag(QName name) {
//		this.name = name;
//	}
	
	EndTag(QName name, Location location) {
		super(location);
		this.name = name;
	}

	public QName getName() {
		return name;
	}

	@Override
	public boolean isChars() {
		return false;
	}

	@Override
	public boolean isStartDoc() {
		return false;
	}

	@Override
	public boolean isEndDoc() {
		return false;
	}

	@Override
	public boolean isStartTag() {
		return false;
	}

	@Override
	public boolean isEndTag() {
		return true;
	}
}
